package com.java.day13.mail;

import java.util.Date;

public class MailInfo {

    // 发件人
    private String sender;
    // 邮件标题
    private String title;

    // 发件日期
    private Date sendDate;

    // 收件人
    private String receiver;

    public MailInfo() {
    }

    public MailInfo(String sender, String title, Date sendDate, String receiver) {
        this.sender = sender;
        this.title = title;
        this.sendDate = sendDate;
        this.receiver = receiver;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getSendDate() {
        return sendDate;
    }

    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    @Override
    public String toString() {
        return "MailInfo{" +
                "sender='" + sender + '\'' +
                ", title='" + title + '\'' +
                ", sendDate=" + sendDate +
                ", receiver='" + receiver + '\'' +
                '}';
    }
}
